package com.wuliwu.autoapi.bean;

import com.wuliwu.autoapi.annotation.Desc;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
@AllArgsConstructor
public class User {

    @Desc("用户ID 新增时为空")
    private Integer id ;

    @Desc("用户名")
    @NotEmpty
    private String username ;

    //创建时间
    private Date createTime ;

}
